package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.ArticleSpecialAnnotation;
import com.caigou.bean.cms.param.ArticleSpecialAnnotationDataParam;
import com.caigou.pojo.ArticleSpecialAnnotationData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Mapper
//@Repository("ArticleSpecialAnnotationMapper")
public interface ArticleSpecialAnnotationMapper {
    int saveArticleSpecialAnnotationData(ArticleSpecialAnnotation annotation);

    List<ArticleSpecialAnnotationData> loadArticleSpecialAnnotationData(@Param("articleId") String articleId);

    int deleteArticleSpecialAnnotation(@Param("id") Integer id);

    int deleteArticleSpecialAnnotationByArticleId(@Param("articleId") String articleId);

    void updateArticleSpecialAnnotationData(ArticleSpecialAnnotationDataParam item);
}
